const newsModel = require('../model/new')

class News {
  async create(ctx) {
    newsModel.sync({ fore: true }).then(async () => {
      await newsModel.create({
        title: '你好',
      })
    })

    ctx.body = 123
  }
}
module.exports = new News()
